package com.anXin.model.service.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 家政服务生成订单
 * @author 鹏
 */
@Data
@TableName("anxin_service_domestic_orders")
public class DomesticOrders {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(value = "id" ,type = IdType.AUTO)
    private Long id;

    /**
     * 顾客id
     */
    @TableField("client_id")
    private Long clientId;

    /**
     * 顾客电话
     */
    @TableField("client_phone")
    private String clientPhone;

    /**
     * 顾客地址
     */
    @TableField("client_address")
    private String clientAddress;

    /**
     * 服务人员id
     */
    @TableField("server_id")
    private Long serverId;

    /**
     * 服务人员电话
     */
    @TableField("server_phone")
    private String serverPhone;

    /**
     * 订单状态
     * 0 正常
     * 1 已完成
     * 2 已取消
     */
    @TableField("state")
    private Integer state;

    /**
     * 订单生成时间
     */
    @TableField("created_time")
    private Date createdTime;

    /**
     * 帖子id
     */
    @TableField("post_id")
    private Long postId;

    /**
     * 订单标题
     */
    @TableField("title")
    private String title;

    /**
     * 订单内容
     */
    @TableField("content")
    private String content;

}
